<?php

//会员
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('foreground');

class classes extends foreground {

    public function __construct() {
        parent::__construct();
    }

    //我的课程
    public function lists() {
        $uid = (int)param::get_cookie('_userid');

        $db_apply_class = pc_base::load_model('apply_class_model');

        //status = 0 TYPE_NONE
        $arr_0 = $db_apply_class->select("uid=$uid and a_catid=1 and status=0");

        //status = 1 TYPE_SUCEESS
        $arr_1 = $db_apply_class->select("uid=$uid and a_catid=1 and status=1");

        //status = 2 TYPE_REFUSE
        $arr_2 = $db_apply_class->select("uid=$uid and a_catid=1 and status=2");

        include template('member', 'classes_lists');
    }
}